-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker to containerd automated migration #1362
Docker to containerd automated migration #1362
Conversation
Skipping CI for Draft Pull Request. |
4eada2b
to
7ef3530
Compare
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some tiny nits, but otherwise, it looks great.
I just have two additional remarks:
- We should document this feature before closing the epic. Please create a subtask for documentation.
- Have you tested this on all supported operating systems? If not, we should do that before merging the PR.
), | ||
|
||
"yum-docker-ce-amzn": heredoc.Docf(` | ||
{{- if or .FORCE .UPGRADE }} | ||
sudo yum versionlock delete docker cri-tools || true | ||
sudo yum versionlock delete docker cri-tools containerd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that we should keep || true
here because of:
- older clusters that might not have
versionlock
installed - if some package isn't version-locked (I'm not sure is
versionlock
failing in that case -- IIRC, it doesn't, but we should double-check)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- the
yum-plugin-versionlock
is already installed at this point so it's always present. yum versionlock delete
is very liberal and if you pass it even non-existing packages it wouldn’t complain (e.g. giving you non-zero exist status)
pkg/tasks/tasks.go
Outdated
return err | ||
} | ||
|
||
s.Logger.Warn("roll-over your machineDeployments to get containerd") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny nit: we usually start log messages with a capital letter. Also, what do you think about rephrasing this message to include some more details?
s.Logger.Warn("roll-over your machineDeployments to get containerd") | |
s.Logger.Warn("Roll-over your MachineDeployments to migrate the worker nodes to containerd") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, changed that to a link to doc with how to launch a rolling restart of machineDeployment.
@@ -184,79 +215,32 @@ var ( | |||
sudo yum-config-manager --save --setopt=docker-ce-stable.module_hotfixes=true | |||
{{ end }} | |||
|
|||
sudo yum install -y yum-plugin-versionlock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's guaranteed that the versionlock
plugin will be installed by default. We should still install it explicitly to be sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's removed here because it's the second time it's installed. So we still have versionlock plugin.
There might be a problem with flatcar. |
/retest |
1 similar comment
/retest |
1aeb27a
to
9a363b0
Compare
/retest |
/hold until docs are ready |
@xmudrii despite it's onhold (waiting for docs), it's ready for a review. |
ef42b95
to
3ca29be
Compare
/retest |
docs PR: kubermatic/docs#712 |
/unhold |
Signed-off-by: Artiom Diomin <kron82@gmail.com>
Signed-off-by: Artiom Diomin <kron82@gmail.com>
Signed-off-by: Artiom Diomin <kron82@gmail.com>
Signed-off-by: Artiom Diomin <kron82@gmail.com>
Signed-off-by: Artiom Diomin <kron82@gmail.com>
Signed-off-by: Artiom Diomin <kron82@gmail.com>
Signed-off-by: Artiom Diomin <kron82@gmail.com>
Signed-off-by: Artiom Diomin <kron82@gmail.com>
Signed-off-by: Artiom Diomin <kron82@gmail.com>
Signed-off-by: Artiom Diomin <kron82@gmail.com>
Signed-off-by: Artiom Diomin <kron82@gmail.com>
3ca29be
to
ac2acb9
Compare
/lgtm |
LGTM label has been added. Git tree hash: 6a2c4be8abe8d7c027bb0990928bec3cb0f1ae46
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kron4eg, WeirdMachine The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #1350
Special notes for your reviewer:
Does this PR introduce a user-facing change?: